home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AppleScript - The Beta Release
/
AppleScript - The Beta Release.iso
/
Development Tools
/
Interfaces
/
PInterfaces
/
AppleScript.p
< prev
next >
Wrap
Text File
|
1992-11-02
|
3KB
|
111 lines
{
////////////////////////////////////////////////////////////////////////////////
// OPEN SCRIPTING ARCHITECTURE: Client Interface
////////////////////////////////////////////////////////////////////////////////
// Copyright © 1992 Apple Computer, Inc. All rights reserved.
// Authors: Jens Alfke, William Cook, Donn Denman, and Warren Harris
////////////////////////////////////////////////////////////////////////////////
// This interface defines what it means to be a "scripting component."
// Scripting components allow "scripts" to be loaded and executed. This
// interface does not define the way in which a particular scripting
// component's scripts are editing and debugged.
////////////////////////////////////////////////////////////////////////////////
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT AppleScript;
INTERFACE
{$ENDC}
{$IFC UNDEFINED UsingAppleScript}
{$SETC UsingAppleScript := 1}
{$I+}
{$SETC AppleScriptIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED UsingAppleEvents}
{$I $$Shell(PInterfaces)AppleEvents.p}
{$ENDC}
{$IFC UNDEFINED UsingComponents}
{$I $$Shell(PInterfaces)Components.p}
{$ENDC}
{$SETC UsingIncludes := AppleScriptIncludes}
{ Types and Constants }
CONST
typeAppleScript = 'ascr';
kAppleScriptSubtype = typeAppleScript;
typeASSourceType = typeChar;
typeASStorage = typeAppleScript;
{ Component Selectors }
kASSelectInit = $1001;
kASSelectSetSourceStyles = $1002;
kASSelectGetSourceStyles = $1003;
kASSelectGetSourceStyleNames = $1005;
{ Initialization }
FUNCTION
ASInit(scriptingComponent : ComponentInstance;
modeFlags : LONGINT;
minStackSize : LONGINT;
preferredStackSize : LONGINT;
maxStackSize : LONGINT;
minHeapSize : LONGINT;
preferredHeapSize : LONGINT;
maxHeapSize : LONGINT)
: OSAError;
INLINE $2F3C, $001C, $1001, $7000, $A82A;
{ Default Initialization Parameters }
CONST
kASDefaultMinStackSize = 1 * 1024;
kASDefaultPreferredStackSize = 4 * 1024;
kASDefaultMaxStackSize = 16 * 1024;
kASDefaultMinHeapSize = 4 * 1024;
kASDefaultPreferredHeapSize = 64 * 1024;
kASDefaultMaxHeapSize = 32 * 1024 * 1024;
{ Source Styles }
FUNCTION
ASSetSourceStyles(scriptingComponent : ComponentInstance;
sourceStyles : STHandle)
: OSAError;
INLINE $2F3C, $0004, $1002, $7000, $A82A;
FUNCTION
ASGetSourceStyles(scriptingComponent : ComponentInstance;
VAR resultingSourceStyles : STHandle)
: OSAError;
INLINE $2F3C, $0004, $1003, $7000, $A82A;
ASGetSourceStyleNames(scriptingComponent : ComponentInstance;
modeFlags : LONGINT;
VAR resultingSourceStyleNamesList : AEDescList)
: OSAError;
INLINE $2F3C, $0008, $1004, $7000, $A82A;
CONST
kASSourceStyleUncompiledText = 0;
kASSourceStyleNormalText = 1;
kASSourceStyleLanguageKeyword = 2;
kASSourceStyleApplicationKeyword = 3;
kASSourceStyleComment = 4;
kASSourceStyleLiteral = 5;
kASSourceStyleParameter = 6;
kASSourceStyleUserSymbol = 7;
kASSourceStyleAlias = 8;
kASNumberOfSourceStyles = 9;
{$ENDC} { UsingAppleScript }
{$IFC NOT UsingIncludes}
END.
{$ENDC}